package com.pjedu.nbmallshop.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import java.util.Date;
import java.io.Serializable;

/**
 * (MallShoppingCartItem)实体类
 *
 * @author 汪洋
 * @since 2022-01-31 15:08:04
 */
@Data
@Builder
public class MallShoppingCartItem implements Serializable {
    private static final long serialVersionUID = 217883256685586717L;
    /**
     * 购物项主键id
     */
    private Long cartItemId;
    /**
     * 用户主键id
     */
    private Long userId;
    /**
     * 关联商品id
     */
    private Long goodsId;
    /**
     * 数量(最大为5)
     */
    private Integer goodsCount;
    /**
     * 删除标识字段(0-未删除 1-已删除)
     */
    private Integer isDeleted;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 最新修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    @Tolerate
    public MallShoppingCartItem() {

    }
}

